home *** CD-ROM | disk | FTP | other *** search
- Path: isum2.iastate.edu!cakamman
- From: cakamman@iastate.edu (Chris A Kamman)
- Newsgroups: comp.lang.c
- Subject: Reading files - DOS & UNIX
- Date: 8 Feb 96 15:29:46 GMT
- Organization: Iowa State University, Ames, Iowa
- Message-ID: <cakamman.823793386@isum2.iastate.edu>
- NNTP-Posting-Host: isum2.iastate.edu
-
- Hi,
-
- I would like to have the same program read text files on SUN and
- PC.
-
- What I ended up doing was - use fopen with rb mode. Then remove
- the linefeed and carraige return characters if they exist. This solu
- works.
-
- But I don't know if I can use fgets on a stream opened in binary mode
- (I am assuming I am right because the char is binary is same as char in
- text?).
-
- Thanks for any info/tips.
- --
- Chris A Kamman
- cakamman@iastate.edu
-